package cn.itsource.zcn.product.controller;

import cn.itsource.zcn.product.domain.ProductDetail;
import cn.itsource.zcn.product.service.IProductDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * (ProductDetail)表控制层
 *
 * @author makejava
 * @since 2021-08-30 09:20:26
 */
@RestController
@RequestMapping("/productdetail")
public class ProductDetailController {
    /**
     * 服务对象
     */
    @Autowired
    private IProductDetailService tProductDetailService;

    /**
     * 查询全部数据
     *
     * @return List<>
     */
    @RequestMapping("/all")
    public List<ProductDetail> queryAll() {
        return tProductDetailService.queryAll();
    }

}
